<?php $this->load->view('_inc/header')?>

<h1>Hospitais de <?php echo $hospitais['0']['cidade'] ?></h1>

<table class="listagem">
    <tr>
        <th>Nome</th>
        <th>Telefone</th>
        <th>Cidade</th>
        <th>Tipo</th>
        <th>Endereço</th>
    </tr>
    <?php foreach($hospitais as $hospital){ if (!empty($hospital)) {?>
    <tr>
        <td><?php echo $hospital['hospital']?></td>
        <td><?php echo $hospital['telefone']?></td>
        <td><?php echo $hospital['cidade']?></td>
        <td><?php echo $hospital['tipo_hospital']?></td>
        <td><?php echo $hospital['endereco']?></td>
    </tr>
    <?php } } ?>
</table>

<?php $this->load->view('_inc/footer')?>